import DaiFenpei from '@/views/daifenpei'
import YiQians from '@/views/yiqians'
import YiPaic from '@/views/yipaic'
import DaiPeis from '@/views/daipeisongsq'
import YiPiasxq from '@/views/yipaichexq'
import YiQiansxq from '@/views/yiqianshouxq'

import TacBar from '@/components/tac-bar'
import TabBar from '@/components/tab-bar'
const routes = [
  {
    path: '/',
    redirect: '/daifenpei',
    meta: {},
  },
  {
    path: '/yipaic',
    name: '/yipaic',
    components: {
      // header: TacBar,
      default: YiPaic,
      left: TabBar,
      tac: TacBar,
    },
    meta: {
      icon: '',
      title: '已派车',
    },
  },
  {
    path: '/yiqianshouxq',
    name: '/yiqianshouxq',
    components: {
      default: YiQiansxq,
      left: TabBar,
      tac: TacBar,
    },
    meta: {
      icon: '',
      title: '已签收详情',
    },
  },
  {
    path: '/daifenpei',
    name: '/daifenpei',
    components: {
      left: TabBar,
      tac: TacBar,

      default: DaiFenpei,
    },
    meta: {
      icon: '',
      title: '待分配',
    },
  },
  {
    path: '/yipaichexq',
    name: '/yipaichexq',
    components: {
      left: TabBar,
      tac: TacBar,
      default: YiPiasxq,
    },
    meta: {
      icon: '',
      title: '已派送详情',
    },
  },
  {
    path: '/yiqians',
    name: '/yiqians',
    components: {
      left: TabBar,
      tac: TacBar,
      default: YiQians,
    },
    meta: {
      icon: '',
      title: '已签收',
    },
  },
  {
    path: '/daipeisongsq',
    name: '/daipeisongsq',
    components: {
      left: TabBar,
      tac: TacBar,
      default: DaiPeis,
    },
    meta: {
      icon: '',
      title: '待配送详情',
    },
  },
]

export default routes
